package com.zmn.plat.admin.controller.node;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

import com.zmn.plat.admin.controller.PlatBaseController;
import com.zmn.plat.model.entity.user.CustomerQuery;

/**
 * @author duanzuocai
 * @version v1.0
 * @since 2018/10/8 11:49 @类说明：
 */
@Controller
@RequestMapping("/node/")
public class NodeListController extends PlatBaseController {

    @RequiresPermissions("/node/list.action")
    @RequestMapping(value = "list")
    public ModelAndView list(@ModelAttribute CustomerQuery query, @RequestParam(value = "userName", defaultValue = "") String userName) {
        ModelAndView mav = new ModelAndView("node/list");

        mav.addObject("msg", "test.............");

        return mav;
    }
}
